package com.rdc.soulmatemusicplayer.application;

import android.Manifest;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.util.DisplayMetrics;
import android.view.WindowManager;

import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;

import com.rdc.soulmatemusicplayer.base.MainActivity;
import com.rdc.soulmatemusicplayer.service.PlayService;

/**
 * @author Soul Mate
 * @file 文件名
 * @brief 简单的功能介绍
 * @date 创建日期  2021-04-19 0:01
 */

public class App extends Application
{
	// 整个App都使用这个context
	public static Context sContext;

	@Override
	public void onCreate() {
		super.onCreate();
		sContext = getApplicationContext();

		startService(new Intent(sContext, PlayService.class));

	}

}
